import request from '@/utils/request'

// 查询房间图片管理列表
export function listRomimgview(query) {
  return request({
    url: '/romimgview/romimgview/list',
    method: 'get',
    params: query
  })
}

// 查询房间图片管理详细
export function getRomimgview(imageRoomId) {
  return request({
    url: '/romimgview/romimgview/' + imageRoomId,
    method: 'get'
  })
}

// 查询房间详细
export function getNewRoom(roomId) {
  return request({
    url: '/romimgview/romimgview/room/' + roomId,
    method: 'get'
  })
}

// 查询图片详细
export function getNewImage(imageId) {
  return request({
    url: '/romimgview/romimgview/image/' + imageId,
    method: 'get'
  })
}

// 新增房间图片管理
export function addRomimgview(data) {
  return request({
    url: '/romimgview/romimgview',
    method: 'post',
    data: data
  })
}

// 修改房间图片管理
export function updateRomimgview(data) {
  return request({
    url: '/romimgview/romimgview',
    method: 'put',
    data: data
  })
}

// 删除房间图片管理
export function delRomimgview(imageRoomId) {
  return request({
    url: '/romimgview/romimgview/' + imageRoomId,
    method: 'delete'
  })
}
